﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace LionForms
{
    public class RadMessageBoxExtensions
    {
        public const string DefaultThemeName = "Aqua";
        public static DialogResult Show(string text, string caption, MessageBoxButtons messageBoxButtons, RadMessageIcon icon, string themeName = DefaultThemeName)
        {
            RadMessageBox.SetThemeName(themeName);
            return RadMessageBox.Show(text, caption, messageBoxButtons,icon);
        
        }


        public static DialogResult Show(string text, string themeName = DefaultThemeName)
        {
            RadMessageBox.SetThemeName(themeName);
            return RadMessageBox.Show(text);
        }

        public static DialogResult Show(string text, string caption, MessageBoxButtons messageBoxButtons, string themeName = DefaultThemeName)
        {
            RadMessageBox.SetThemeName(themeName);
            return RadMessageBox.Show(text, caption, messageBoxButtons);
        }
    }
}
